package com.blb.service.impl;

import com.blb.entity.ProductHandover;
import com.blb.mapper.ProductHandoverMapper;
import com.blb.service.IProductHandoverService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-18
 */
@Service
public class ProductHandoverServiceImpl extends ServiceImpl<ProductHandoverMapper, ProductHandover> implements IProductHandoverService {

    @Resource
    private ProductHandoverMapper productHandoverMapper;

    @Override
    public List<ProductHandover> getList(String companyId,String order_id, Date handoverDate, int start, int length) {
        List<ProductHandover> list = productHandoverMapper.getList(companyId,order_id, handoverDate, start,  length);
        return list;
    }

    @Override
    public void addph(ProductHandover productHandover) {
        productHandoverMapper.insert(productHandover);
    }

    @Override
    public void delByIds(Collection<String> ids) {
        productHandoverMapper.deleteBatchIds(ids);
    }

    @Override
    public void updateExt(String id) {
        productHandoverMapper.updateExt(id);
    }

    @Override
    public List<ProductHandover> findOrderId(String companyId) {
        return productHandoverMapper.findOrderId(companyId);
    }

}
